<?php
namespace app\admin\controller;
use think\Controller;

class Admin extends Common
{
	
	function index()
	{
		$vm = model('Admin')->getAdminInfo();
		return view('index',['admin_info'=>$vm]);
	}
	function editAdminInfo($data){
		if (!$this->REQUEST->isAjax()) return "非法操作";
		return model('Admin')->editAdminInfo($data);
	}
}
